[NTG-context] Re: incosistent output of --- dash

2024-04-06 Thread Pablo Rodriguez via ntg-context
after or before the dash, since I don't > like it to stick to some letters like "o"). Just consider that you should add an horizontal box (or pair both space and hyphen), otherwise you may get a line break between character and hyphen (instead of the hair space): \starttext \start

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-16 Thread Hans Hagen
by that ... context can add profiles if configured to do so (best not to embed them) ... and why should there be a profile anyway ... crappy arguments .. especially because when i run \usemodule[tikz] \startTEXpage \definecolor [colorone] [r=0,g=0,b=0.5] \definecolor [colortwo] [c=0,m=1

[NTG-context] Re: \intertext and highlighting with \alignhere/\breakhere

2024-03-13 Thread Hans Hagen via ntg-context
t,depth=\strutdp,offset=.250ex,color=red] \definebar [yourbar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.125ex,color=blue] \definebar [ourbar] [backgroundbar] [height=\strutht,depth=\strutdp,offset=.125ex,color=green] \starttext \startTEXpage[width=4cm] \startformul

[NTG-context] weird character normalization in the wiki

2024-03-09 Thread Pablo Rodriguez via ntg-context
normalization on the way]): \definefontfamily[mainface][rm][EBGaramond] \setupbodyfont[mainface, 500pt] \definecolor [tred] [r=1,t=.5,a=1] \definecolor [tblue] [b=1,t=.25,a=1] \starttext \startTEXpage[offset=1ex] \startoverlay {\color[tred]{Ά}} {\color[tblue]{Ά}} \stopoverlay

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Henning Hraban Ramm
}, it={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] Re: \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Wolfgang Schuster
}, it={style: regular, features:{default, quality, slanted}}, sl={style: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d

[NTG-context] \em issue in MkXL (2024.03.05 11:26)

2024-03-08 Thread Pablo Rodriguez via ntg-context
: regular, features:{default, quality, slanted}}] \setupbodyfontenvironment [default] [em=italic] \setupbodyfont[mainface] \starttext \startTEXpage[offset=1em] a\\ \em b\\ \em c\\ \em d\\ \stopTEXpage \stoptext LMTX gets b, c and d in slanted form. LuaTeX gets only

[NTG-context] Re: issue mixing font features (LMTX & MkIV)

2024-03-04 Thread Hans Hagen via ntg-context
, quality}}, bf={style: regular, features:{default, boldened-30}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext

[NTG-context] issue mixing font features (LMTX & MkIV)

2024-03-03 Thread Pablo Rodriguez via ntg-context
}}, bi={style: regular, features:{default, boldened-30, slanted}}] \setupbodyfont [mainface, 30pt] \starttext \startTEXpage[offset=1ex] a {\it a}\\ {\bf a} {\bi a} \stopTEXpage \stoptext With current latest (2024.02.27 09:21), LuaTeX gets boldened and slanted for regular

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
On Feb. 19 2024, at 2:39 pm, Mikael Sundqvist wrote: > Hi, > > Try > \startTEXpage[pagestate=start] > /Mikael > On Mon, Feb 19, 2024 at 2:31 PM Emanuel Han via ntg-context > wrote: > > > >  I just made a strange observation in the output pdf of the attached >

[NTG-context] Re: Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Mikael Sundqvist
Hi, Try \startTEXpage[pagestate=start] /Mikael On Mon, Feb 19, 2024 at 2:31 PM Emanuel Han via ntg-context wrote: > >  I just made a strange observation in the output pdf of the attached > layer_set.tex, which is that when opening it with a pdf viewer like skim or > m

[NTG-context] Fwd: Re: Working with layer sets with Metapost

2024-02-19 Thread Emanuel Han via ntg-context
. And then do\dorecurse{5}{\startTEXpage[offset=1DK]\useMPgraphic{layerset#1}\stopTEXpage}if that is the looping you are after./MikaelOn Fri, Feb 16, 2024 at 6:54 AM Emanuel Han via ntg-context wrote:>> Resp. the solution should be such that each generated PDF page has the same dimension, th

[NTG-context] Re: Working with layer sets with Metapost

2024-02-17 Thread Emanuel Han via ntg-context
ot sure I get what you are missing. But you can try > setbounds currentpicture to (fullsquare scaled 200) ; > in base. And then do > \dorecurse{5}{ > \startTEXpage[offset=1DK] > \useMPgraphic{layerset#1} > \stopTEXpage > } > > if that is the looping you are after. > /M

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Mikael Sundqvist
Hi, not sure I get what you are missing. But you can try setbounds currentpicture to (fullsquare scaled 200) ; in base. And then do \dorecurse{5}{ \startTEXpage[offset=1DK] \useMPgraphic{layerset#1} \stopTEXpage } if that is the looping you are after. /Mikael On Fri, Feb 16, 2024 at 6:54 AM

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
aphic{base} > > > z1 = origin ; > > > z2 = (10,50) ; > > > z3 = (40,30) ; > > > > > > picture layerA; > > > layerA:=image( > > > label("Word 1", z1); > > > ); > > > > > > picture layerW; > > > layerW:

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
; > > layerW:=image( > > label("Mot 2", z2); > > ); > > > > picture layerM; > > layerM:=image( > > label("Parola 3", z3); > > ); > > > > picture layerC; > > layerC:=image( > > label("Wort 4", z3

[NTG-context] Re: Working with layer sets with Metapost

2024-02-15 Thread Emanuel Han via ntg-context
icture layerC; > layerC:=image( > label("Wort 4", z3+z1); > ); > > picture layerY; > layerY:=image( > label("Nummer 5", z2+z3); > ); > > picture layerU; > layerU:=image( > label("number 6", z2+z1); > ); > \stopuseMPgraphic >

[NTG-context] Re: Working with layer sets with Metapost

2024-02-14 Thread Mikael Sundqvist
rtuseMPgraphic{layerset2} \includeMPgraphic{layerset1} ; draw layerY ; \stopuseMPgraphic \startuseMPgraphic{layerset3} \includeMPgraphic{layerset2} ; \includeMPgraphic{Gamma} ; \stopuseMPgraphic \startuseMPgraphic{layerset4} \includeMPgraphic{layerset2} ; draw layerU ; \stopuseMPgraphic \startu

[NTG-context] scaling tweaked fonts

2024-01-18 Thread Pablo Rodriguez via ntg-context
Hi Hans, I have the following sample which behaves differently after latest from 2023.09.26 18:19: \definetweakedfont[wider][xscale=1075] \starttext \startTEXpage[align=center] \contextversion\\ \wider \contextversion \stopTEXpage \stoptext Up to that version

[NTG-context] Re: Spacing problem in formula

2024-01-15 Thread Hans Hagen
rescripts: \startTEXpage[offset=1DK] \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } \m{1 - C_2^^n \tan^2\theta + C_4^^n } \stopTEXpage If you want them below, use double _. /Mikael On Mon, Jan 15, 2024 at 7:45 AM Shiv Shankar Dayal mailto:shivshankar.da...@gmail.com>

[NTG-context] Re: Spacing problem in formula

2024-01-14 Thread Shiv Shankar Dayal
Thanks a lot Mikael. On Mon, Jan 15, 2024 at 12:24 PM Mikael Sundqvist wrote: > Hi, > > ConTeXt supports prescripts: > > \startTEXpage[offset=1DK] > > \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } > > \m{1 - C_2^^n \tan^2\theta + C_4^^n } > > \stopTEXpage >

[NTG-context] Re: Spacing problem in formula

2024-01-14 Thread Mikael Sundqvist
Hi, ConTeXt supports prescripts: \startTEXpage[offset=1DK] \m{1 - {}^nC_2\tan^2\theta + {}^nC_4 } \m{1 - C_2^^n \tan^2\theta + C_4^^n } \stopTEXpage If you want them below, use double _. /Mikael On Mon, Jan 15, 2024 at 7:45 AM Shiv Shankar Dayal wrote: > > Suppose I want to t

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-09 Thread Gerion Entrup
t; > symbols is wheelchair. However, when using that, I just got the string > > _378 (3.pdf). Source code: > > > > ``` > > \usesymbols[fontawesome] > > > > \startTEXpage[offset=1pt] > > \symbol[fontawesome][wheelchair] > > \stopTEXpa

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-09 Thread Wolfgang Schuster
here, one of the few remaining symbols is wheelchair. However, when using that, I just got the string _378 (3.pdf). Source code: ``` \usesymbols[fontawesome] \startTEXpage[offset=1pt] \symbol[fontawesome][wheelchair] \stopTEXpage ``` Is there a problem with my installation? Additional

[NTG-context] Re: Fwd: Re: x mark symbol and general symbol guide

2024-01-09 Thread Gerion Entrup
chair. However, when using that, I just got the string _378 (3.pdf). Source code: ``` \usesymbols[fontawesome] \startTEXpage[offset=1pt] \symbol[fontawesome][wheelchair] \stopTEXpage ``` Is there a problem with my installation? Additional output: ``` % mtxrun --script fonts --list --all --

[NTG-context] Re: multipage metapost output from ConTeXt

2024-01-06 Thread Emanuel Han via ntg-context
> pair BEndPoint; BEndPoint = point 1 of B; > > >> path C; C = AStartPoint..AEndPoint; > > >> > > >> p1:=image( > > >> draw A withcolor red; > > >> ); > > >> > > >> p2:=image(draw A; label(lmt_outline [ > >

[NTG-context] Re: Equivalent for hdots and hdotsfor

2023-12-30 Thread Mikael Sundqvist
\HF or \HF[n]. \startTEXpage[offset=1DK] \dm{ \startnamedmatrix[matrix:bars] \NC 1 \NC x \NC x^2 \NC \ldots \NC x^{n-1} \NR \NC 1 \NC y \NC y^2 \NC \ldots \NC y^{n-1} \NR \HF[3] \NR \NC 1 \NC z \NC z^2 \NC \ldots \NC z^{n-1} \NR \stopnamedmatrix } \stopTEXp

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Fabrice Couvreur
1. >>> > >>> > \mapfontsize[modern][script] [.4] >>> > \mapfontsize[modern][scriptscript][.2] >>> > >>> > \setupbodyfont[modern,12pt] >>> > >>> > \startTEXpage[offset=1DK] >>> > \m{z_{n+1}} >>> > \stopT

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
ipt] [.4] >> > \mapfontsize[modern][scriptscript][.2] >> > >> > \setupbodyfont[modern,12pt] >> > >> > \startTEXpage[offset=1DK] >> > \m{z_{n+1}} >> > \stopTEXpage >> >> Strange, here it looks OK. Maybe something that will be solved when &

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Fabrice Couvreur
l symbol is too big as well as the number 1. > > > > \mapfontsize[modern][script] [.4] > > \mapfontsize[modern][scriptscript][.2] > > > > \setupbodyfont[modern,12pt] > > > > \startTEXpage[offset=1DK] > > \m{z_{n+1}} > > \stopTEXpage > > S

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
ing example the operational > > symbol is too big as well as the number 1. > > > > \mapfontsize[modern][script] [.4] > > \mapfontsize[modern][scriptscript][.2] > > > > \setupbodyfont[modern,12pt] > > > > \startTEXpage[offset=1DK] > &

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
etupbodyfont[modern,12pt] > > \startTEXpage[offset=1DK] > \m{z_{n+1}} > \stopTEXpage Strange, here it looks OK. Maybe something that will be solved when there is an update then. /Mikael ___ If your quest

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Fabrice Couvreur
Thank you for your suggestion but in the following example the operational symbol is too big as well as the number 1. \mapfontsize[modern][script] [.4] \mapfontsize[modern][scriptscript][.2] \setupbodyfont[modern,12pt] \startTEXpage[offset=1DK] \m{z_{n+1}} \stopTEXpage Le ven. 29 déc. 2023 à

[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
, z_{n+1}=\frac{i}{3}z_n} you could try something like (here with too small numbers only to show...) \mapfontsize[modern][script] [.4] \mapfontsize[modern][scriptscript][.2] \setupbodyfont[modern,10pt] \startTEXpage[offset=1DK] \m{3^{2^3}} \stopTEXpage I

[NTG-context] Re: QR Code

2023-12-18 Thread Michal Vlasák
nTeXt cannot simply find where the > converted PDF versions of the zint images are. > > If I have the following source in testing-barcodes.tex: > > \usemodule[m-zint] > \starttext > \startTEXpage[offset=1dk] > \barcode[alternative=isbnx, text=9783865419026,

[NTG-context] Re: QR Code

2023-12-18 Thread Pablo Rodriguez via ntg-context
stalled (or its path is unknown to the system), or ConTeXt cannot simply find where the converted PDF versions of the zint images are. If I have the following source in testing-barcodes.tex: \usemodule[m-zint] \starttext \startTEXpage[offset=1dk] \barcode[alternative=isbnx, text=9783865419026, width=

[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
themselves. Basically one can sign (with some certificate) and then validate. % sign-001.tex \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-04 Thread Fabrice L
[ > >> text = "\KoreanFont 한국어" > >> ], AStartPoint);); > >> > >> p5:=image( > >> label(textext("bāng"), BEndPoint); > >> draw C withcolor green; > >> ); > >> > >> p6:=image( > >> draw B

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
dPoint; AEndPoint = point 4 of A; > > >> path B; B = z5..z6; > > >> pair BStartPoint; BStartPoint = point 0 of B; > > >> pair BEndPoint; BEndPoint = point 1 of B; > > >> path C; C = AStartPoint..AEndPoint; > >

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
>> ); > >> > >> p4:=image(draw A; label(lmt_outline [ > >> text = "\KoreanFont 한국어" > >> ], AStartPoint);); > >> > >> p5:=image( > >> label(textext("bāng"), BEndPoint); > >> draw C withcolor green; &g

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
> >> p5:=image( > >> label(textext("bāng"), BEndPoint); > >> draw C withcolor green; > >> ); > >> > >> p6:=image( > >> draw B withcolor blue; > >> ); &g

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Mikael Sundqvist
% Just for learning : >> draw TheFrame withpen pencircle scaled .1in withcolor magenta ; >> draw textext("T="(currentime)) scaled 2 shifted(0,2in) withcolor >> magenta ; >> for k=1 upto currentime: draw p[k]; endfor >> setbounds currentpicture to The

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread fv leung
gt; } > > \stoptext > On Nov. 27 2023, at 11:25 pm, Aditya Mahajan wrote: > > On Mon, 27 Nov 2023, Fabrice L wrote: > > > Hi, > > > > It is fun fact very easy to do. You just use \startMPpage (…) > \stopMPpage multiple times. Here is an example which b

[NTG-context] Re: multipage metapost output from ConTeXt

2023-12-02 Thread Emanuel Han via ntg-context
> > > > Hi, > > > > > > It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage > > > multiple times. Here is an example which build an animation of a particle > > > moving according to a Brownian motion. > > > > A

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-29 Thread Emanuel Han via ntg-context
e to a metapost drawing. This is > what I use: > https://adityam.github.io/context-blog/post/metapost-animation/ > It only works when viewed in acrobat, you can just comment out the animation > part and wrap it in \startTEXpage .. \stopTEXpage to get multi-page animation. > Aditya

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Aditya Mahajan
pass a variable to a metapost drawing. This is what I use: https://adityam.github.io/context-blog/post/metapost-animation/ It only works when viewed in acrobat, you can just comment out the animation part and wrap it in \startTEXpage .. \stopTEXpage to get multi

[NTG-context] Fwd: Re: x mark symbol and general symbol guide

2023-10-16 Thread Gerion Entrup
r documentation for ConTeXt somewhere? \usesymbols[fontawesome] \startTEXpage[offset=1ts] \symbol[fontawesome-solid][times]\quad \symbol[fontawesome-solid][check] \stopTEXpage you can run symb-imp-fonta

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
[references.border=darkblue]% \goto{#1}[url(#1)]\stop} \starttext \startTEXpage[offset=1dk, align=middle] \inone{one}\blank \intwo{two}\blank \inthree{three}\blank \stopTEXpage \chapter[one]{First chapter} \chapter[two]{Second chapter} \chapter

[NTG-context] colors for links

2023-10-12 Thread Pablo Rodriguez
} \starttext \startTEXpage[offset=1dk, align=middle] \inone{one}\blank \intwo{two}\blank \inthree{three}\blank \stopTEXpage \chapter[one]{First chapter} \chapter[two]{Second chapter} \chapter[three]{Second chapter} \stoptext I see that the directive for link

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-22 Thread Hans Hagen via ntg-context
/21/2023 3:29:22 PM Subject Re: [NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters Many thanks, Hans. The method appears to work only for nbsp, not zwj etc. Here is the updated MWE: === \startTEXpage[offset=1em] \disabletrackers[typesett

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris
e: Toggling the symbol for the zero-width joiner and related Unicode control characters Many thanks, Hans. The method appears to work only for nbsp, not zwj etc. Here is the updated MWE: === \startTEXpage[offset=1em] \disabletrackers[typesetters.directions] \disabletrackers[typesetters.zwj] \di

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hans Hagen
ad a similar mechanism for toggling the symbols for Unicode control characters but cannot find it. Does anyone know or recall where the symbol-toggling mechanism is? If not, what would be the simplest way to implement it? Here is a MWE (note that the three control chars might be invisible in yo

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris
ymbols for Unicode control characters but cannot find it. Does anyone know or recall where the symbol-toggling mechanism is? If not, what would be the simplest way to implement it? Here is a MWE (note that the three control chars might be invisible in your email client): == \startTEXpag

[NTG-context] Re: Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hans Hagen
nyone know or recall where the symbol-toggling mechanism is? If not, what would be the simplest way to implement it? Here is a MWE (note that the three control chars might be invisible in your email client): == \startTEXpage[offset=1em] \definedfont[almfixed at 14pt] ZWJ: ‌ ZWN

[NTG-context] Toggling the symbol for the zero-width joiner and related Unicode control characters

2023-09-21 Thread Hamid,Idris
l-toggling mechanism is? If not, what would be the simplest way to implement it? Here is a MWE (note that the three control chars might be invisible in your email client): == \startTEXpage[offset=1em] \definedfont[almfixed at 14pt] ZWJ: ‌ ZWNJ: ‍ NBSP: \stopTEXpage == In No

[NTG-context] Fwd: escaping \ in Lua

2023-09-05 Thread Hans Hagen via ntg-context
] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\).pdf". Sorry for the obscure question, but how can I access this with "\goto{l

[NTG-context] escaping \ in Lua

2023-09-05 Thread Pablo Rodriguez
Dear list, I have the following source: \setupinteraction[state=start, display=new] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\

[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Hans Hagen via ntg-context
On 9/4/2023 6:12 PM, Pablo Rodriguez wrote: Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage

[NTG-context] Re: no packed in current latest (LMTX only)

2023-09-04 Thread Rik Kabel
On 9/4/2023 12:12 PM, Pablo Rodriguez wrote: Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage

[NTG-context] no packed in current latest (LMTX only)

2023-09-04 Thread Pablo Rodriguez
Dear list, after updating to current latest (from 2023.09.03 19:03), packed list doesn’t seem to work in LMTX: \starttext \startTEXpage[offset=1em] \startitemize[packed] \item item \item item \stopitemize \stopTEXpage \stoptext MkIV gets packed lists just right. Could anyone

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
I’m afraid that \in{attachment}[foobar] doesn‘t generate a link in your sample. Or do you get a link border from the following source? \setupinteraction[state=start] \enabledirectives[references.border=green] \starttext \startTEXpage[offset=1em] \attachment[ file={hacker.jpg}, m

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Pablo Rodriguez
his): \definefontfamily[mainface][rm][DejaVu Sans] [sl≃style:bf] \setupbodyfont [mainface, 100pt] \starttext \startTEXpage[offset=1ex] a {\em b} \stopTEXpage \stoptext Many thanks for your help again, Pablo

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
][DejaVu Sans] [sl={style:tf, features:{default,slanted}}]    \setupbodyfont[maf, 8pt]    \setupfittingpage[offset=1ex]    \starttext    \startTEXpage    a {\em b}    \stopTEXpage    \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}]    a {\em b}    \stopTEXpage    \stoptext Using LMTX

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Hans Hagen
:{default,slanted}}]    \setupbodyfont[maf, 8pt]    \setupfittingpage[offset=1ex]    \starttext    \startTEXpage    a {\em b}    \stopTEXpage    \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}]    a {\em b}    \stopTEXpage    \stoptext Using LMTX higher font size gives less slanted text

[NTG-context] Re: slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Wolfgang Schuster
] \setupfittingpage[offset=1ex] \starttext \startTEXpage a {\em b} \stopTEXpage \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}] a {\em b} \stopTEXpage \stoptext Using LMTX higher font size gives less slanted text (or not at all). Using MkIV text is slanted fine

[NTG-context] slanted font feature: LMTX vs. MkIV

2023-09-02 Thread Pablo Rodriguez
\startTEXpage a {\em b} \stopTEXpage \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}] a {\em b} \stopTEXpage \stoptext Using LMTX higher font size gives less slanted text (or not at all). Using MkIV text is slanted fine, independent from font size. Could anyone confirm the issue? Many

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Fabrice Couvreur
e can do > > \starttext > > \setupframed > [mathstrikeout] > [color=darkgreen, > backgroundcolor=darkred, > frame=off] > > \startTEXpage[offset=4dk,align=flushleft] > \dm{1+\mathstrikeout[strike:text={what is this?}]{(2x-x)}+2=3+x} > \blank > \dm{1+\mathstrike

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Mikael Sundqvist
ce I don't know what the cancel package gives, but since December 22 or so, one can do \starttext \setupframed [mathstrikeout] [color=darkgreen, backgroundcolor=darkred, frame=off] \startTEXpage[offset=4dk,align=flushleft] \dm{1+\mathstrikeout[strike:text={what is this?}]{(2x-x)}+2=3+x} \blank

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-21 Thread Carlos
process a file and you should see > > something like this: > > > > As you can see the luatex engine processes the file cont-yes.mkiv and not > > your document which put as argument to context. Your document is just read > > by cont-yes.mkiv and at the end of the docume

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen via ntg-context
Carlos, > On 8/20/2023 6:41 PM, Wolfgang Schuster wrote: And now it gets even worse, see https://meeting.contextgarden.net/2021/talks/2021-09-21/starttext.pdf why \starttext is necessar And watch how \startTEXpage is defined. It clearly explains why that works without. Also watch how \

[NTG-context] Re: redefine space to be the same as \␣ similar to knuthian approach

2023-08-20 Thread Hans Hagen
and at the end of the document ConTeXt inserts an extra \stoptext which is ignored when your document is valid (equal number of \starttext and \stoptext). The bonus \starttext is just there so that we can use \startTEXpage etc without wrapper and a second bonus is that it catches sloppy coding

[NTG-context] Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hamid,Idris
% sqtfm=yes] \showglyphs \startTEXpage[offset=1em] \definedfont[texgyretermes-regular*forceyes] % \definedfont[texgyretermes-regular*forceno] % \addfeature{forceyes} abcdefg \stopTEXpage == You may toggle these lines: \definedfont[texgyretermes-regular*forceyes] % \definedfont[t

[NTG-context] Re: Some very simple cld - loading a module

2023-08-18 Thread Hamid,Idris
({ "first" }) or context.usemodule{ "first" } context.enableinputtranslation() context.darkgreen() \stopluacode \startTEXpage[offset=1em] \translateinput[Hermes][Idris] Hermes \disableinputtranslation Hermes \stopTEXpage === tex error > tex error on line 14 in

[NTG-context] Re: Some very simple cld - loading a module

2023-08-18 Thread Wolfgang Schuster
({ "first" }) or context.usemodule{ "first" }     context.enableinputtranslation()     context.darkgreen() \stopluacode \startTEXpage[offset=1em] \translateinput[Hermes][Idris] Hermes \disableinputtranslation Hermes \stopTEXpage === tex error       > tex error on

[NTG-context] Some very simple cld - loading a module

2023-08-18 Thread Hamid,Idris
\startTEXpage[offset=1em] \translateinput[Hermes][Idris] Hermes \disableinputtranslation Hermes \stopTEXpage === tex error > tex error on line 14 in file ./test-luacode.tex: Undefined control sequence \translateinput [Hermes][Idris] === The reason for the er

[NTG-context] Re: new upload

2023-08-17 Thread Pablo Rodriguez
ection 6 of the manual. > \startTEXpage[offset=1ex] > x\vrule height 1fa depth 1fd\relax x % \ascender \descender > x\vrule height 1sh depth 1sd\relax x % \strutht \strutdp > x\vrule height 1fc depth 0pt\relax x % \capheight > \stopTEXpage > > you can also run s-sys

[NTG-context] Re: new upload

2023-08-16 Thread Hans Hagen via ntg-context
Hi Pablo, I Uploaded an update so you can spend the evening wikifying units ... see lowlevel manual for the full list \startTEXpage[offset=1ex] x\vrule height 1fa depth 1fd\relax x % \ascender \descender x\vrule height 1sh depth 1sd\relax x % \strutht \strutdp x\vrule height 1fc

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Pablo Rodriguez
On 8/15/23 21:48, vm via ntg-context wrote: > [...] > A different approach is to use \dontleavehmode In that case, \dorecurse is your friend, such as in: \starttext \startTEXpage[offset=10mm, pagestate=start] \dorecurse{5}{ \dontleavehmode \framed[frame=off]{\externalfigure[p1-4_4-01-56-

[NTG-context] Re: [ odd spacing ]

2023-08-15 Thread Hans Hagen via ntg-context
. There is probably a reason for this to happen, but how to avoid it ? .Floris [MWE] \starttext \startTEXpage[offset=10mm, pagestate=start] \startcombination[nx=3, ny=5] \startcontent\externalfigure[p1-4_4-01-56-25-015.png][height=.2\textwidth,width=.2\textwidth]\stopcontent \startcontent\externalfigure[p1

[NTG-context] [ odd spacing ]

2023-08-15 Thread vm via ntg-context
Placing identical images in a n x m grid shows extra space every two rows. Also the vertical and horizontal spaces are different. There is probably a reason for this to happen, but how to avoid it ? .Floris [MWE] \starttext \startTEXpage[offset=10mm, pagestate=start] \startcombination[nx

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
[\s!rm] [\s!serif] [latin-modern-designsize] [\s!default] [\s!designsize=\s!auto] so [\s!designsize=\s!auto] means there is no explicit call to lmroman8-regular etc.? Interesting.. Ok, let's try it: === \setupbodyfont[modern-designsize] \startTEXpage[offset=1em] Test {\tfa Test} {\tfb Test

[NTG-context] Re: Optical scaling in Latin Modern

2023-08-15 Thread Hans Hagen
On 8/15/2023 3:56 PM, Hamid,Idris wrote: Dear gang, It seems that ConTeXt does not currently implement optical scaling for Latin Modern -- at least not by default. For example: === \startTEXpage[offset=1em] Test {\tfa Test} {\tfb Test} {\tfc Test} {\tfd Test} {\tfx Test} {\tfxx Test

[NTG-context] Optical scaling in Latin Modern

2023-08-15 Thread Hamid,Idris
Dear gang, It seems that ConTeXt does not currently implement optical scaling for Latin Modern -- at least not by default. For example: === \startTEXpage[offset=1em] Test {\tfa Test} {\tfb Test} {\tfc Test} {\tfd Test} {\tfx Test} {\tfxx Test} \stopTEXpage === In the log we have

[NTG-context] Font switching, default features, and a request

2023-08-13 Thread Hamid,Idris
Dear gang, Consider the following example: == \setupdirections[bidi=global,method=one] \startTEXpage[offset=1em,width=14in] \definedfont[almfixed*arabic] \switchtobodyfont[almfixed*arabic] \switchtobodyfont[almfixed] % \addff{arabic} \startbuffer[] \startlines الثَّعْلَبُ

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-13 Thread Hans Hagen via ntg-context
0x043,0.5,true) -- some fake end end local specification = { name= "idrify", description = "idrify", manipulators = { base = initialize, node = initialize, } } fonts.handlers.otf.features.register(specification) \stopluacode % \def

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Mikael Sundqvist
(and different linebreaking). > > > > \showglyphs > > > > \startTEXpage[offset=1ex] > > \ruledhbox{$\overline{OA} = \overbar {OA} = 4.2$} > > \par > > \ruledhbox{$\underline {OA} = \underbar {OA} = 4.2$} > > \par >

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen via ntg-context
at tug meetings on YT. The output with Luametatex is correct but Luatex creates a raised bar (and different linebreaking). \showglyphs \startTEXpage[offset=1ex] \ruledhbox{$\overline{OA} = \overbar {OA} = 4.2$} \par \ruledhbox{$\underline {OA} = \underbar

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
So, Finally is it a bug in MKIV? It seems you fix some kind of bug in your messages. Is it true? > The output with Luametatex is correct but Luatex creates a raised bar > (and different linebreaking). > > \showglyphs > > \startTEXpage[offset=1ex] > \ruledh

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
tchbox % \boxyoffset\scratchbox\scratchheight % \boxorientation\scratchbox\plustwo % \ht\scratchbox\scratchheight % \box\scratchbox % \egroup % \stopsetups % \definesymbol % [iTee] % [\directsetup{glyph:iTee}] % \startTEXpage [offset=1ts,wid

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
cratchbox\scratchheight \boxorientation\scratchbox\plustwo \ht \scratchbox\scratchheight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tf

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
hbox\scratchheight > \box\scratchbox > \egroup > \stopsetups > \definesymbol > [iTee] > [\directsetup{glyph:iTee}] > \startTEXpage [offset=1ts,width=2cm] > \ruledhbox {\tfx T \symbol{iTee}} \par > \ruledhbox {T \symbol{iTee}} \par > \ruledhbox {\tfa T \symbol{iTee}} \par >

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
ight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tfa T \symbol{iTee}} \par \ruledhbox {\bfd T \symbol{iTee}} \stopTEXpage Great, will study

[NTG-context] Re: Scaling characters without font switching in CLD

2023-08-12 Thread Hans Hagen
tchbox\scratchheight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tfa T \symbol{iTee}} \par \ruledhbox

[NTG-context] Scaling characters without font switching in CLD

2023-08-12 Thread Hamid,Idris
Dear gang, I. In Context, as is well known, scaling a character is not independent of switching the font: === \startTEXpage[offset=1em] \definefont[Times][times @ 14pt] \Times Test \tfx Test \setupinterlinespace \Times Test \switchtobodyfont[x]Test \Times Test \high{Test} \stopTEXpage

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context
a raised bar (and different linebreaking). \showglyphs \startTEXpage[offset=1ex] \ruledhbox{$\overline{OA} = \overbar {OA} = 4.2$} \par \ruledhbox{$\underline {OA} = \underbar {OA} = 4.2$} \par \ruledhbox{$\widetilde {OA} = \widebar {OA} = 4.2$} \par

[NTG-context] Re: Why overbar is so big

2023-08-12 Thread Hans Hagen via ntg-context
: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - overbar.pdf Description: Adobe PDF document \startTEXpage[offset=1ts] $\overbar{OA} = 4.2$ \stopTEXpage

[NTG-context] Re: Title pages makeup extra blank pages

2023-07-06 Thread Wolfgang Schuster
uded pages in an explicit makeup (as I am now doing)? \pagefigure[...][...] (no need for \startpagefigure .. \stoppagefigure) is a combination of \startTeXpage and \externalfigure and you shouldn't put the command in a makeup environment.

[NTG-context] SVG converter bugs

2023-07-06 Thread Max Chernoff
.org/2000/svg;> \stopbuffer \starttext \startTEXpage \includesvgbuffer[gradient] \stopTEXpage \startMPpage fill unitsquare xyscaled (200,100) withshademethod "linear" withs

Re: [NTG-context] new version

2023-06-23 Thread Marcus Vinicius Mesquita via ntg-context
? > No, it's an independent feature of the linebreak mechanism. You can run > this and see how it kicks in > > \starttext > > \definecolor[ttest][a=1,t=.5] > \definecolor[rtest][a=1,t=.5,r=1] > > \dostepwiserecurse{80}{120}{1}{ > \startTEXpage[of

Re: [NTG-context] new version

2023-06-23 Thread Hans Hagen via ntg-context
] \definecolor[rtest][a=1,t=.5,r=1] \dostepwiserecurse{80}{120}{1}{ \startTEXpage[offset=1ts] \startcombination[1*3] {\startoverlay {\vtop{\showmakeup[space]\hsize #1mm\ttest \samplefile{tufte}}} {\vtop{\showmakeup[space]\hsize #1mm\rtest

  1   2   3   4   5   6   7   8   9   10   >